<template>
    <!-- 导出文件 -->
    <div>
        <van-button type="info" @click="handleClick">
            <slot name="Exceltxt"></slot>
        </van-button>
    </div>
</template>

<script>
export default {
    name: 'Button',
    props: {
        json: {
            type: Array,
            default: []
        }
    },
    data () {
        return {

        }
    },
    methods: {
        handleClick () {
            this.$emit('handleExcel', this.json)
        }
    }
}
</script>